﻿using System;
using System.Collections.Generic;
using System.Text;

namespace game1
{
    class Computer
    {
        public Weapons weapon;
        public Weapons GetWeapon()
        {
            Random rnd = new Random((int)DateTime.Now.Ticks);
            this.weapon = (Weapons)(1+ rnd.Next(0, 2));

            if (weapon == Weapons.paper) { Console.WriteLine("Компьютер выбрал Бумагу"); };
            if (weapon == Weapons.stone) { Console.WriteLine("Компьютер выбрал Камень"); };
            if (weapon == Weapons.scissors) { Console.WriteLine("Компьютер выбрал Ножницы"); };
            return this.weapon;

        }
    }
}
